import request from '@/utils/request'

export default {

  //讲师列表(条件查询分页)
  getLectureListPage(current,limit,lectureQuery){
    return request({
      url: `/eduservice/lecture/pageLectureCondition/${current}/${limit}`,
      method: 'post',
      data: lectureQuery
    })
  },
  deleteLectureId(id){
    return request({
      url: `/eduservice/lecture/${id}`,
      method: 'delete'
    })
  },
  addLecture(lecture){
    return request({
      url: `/eduservice/lecture/addLecture`,
      method:'post',
      data:lecture
    })
  },
  getLectureInfo(id){
    return request({
      url: `/eduservice/lecture/getLecture/${id}`,
      method:'get'
    })
  },
  updateLecture(lecture){
    return request({
      url: `/eduservice/lecture/updateLecture`,
      method: 'post',
      data: lecture
    })
  }
}

